<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SysUser extends Model
{
    protected $table = 'sys_user';
    protected $primaryKey = 'id';
    public $timestamps = false; 
    
    protected $fillable = [
        'id', 'company_id', 'login_name', 'password','name','create_by','create_date',
        'update_by','update_date','del_flag','enterprise_marking'       
    ];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function agent()
    {
        return $this->belongsTo(Agent::class)->withTimestamps();
    }
    
//     public function agent()
//     {
//     	return $this->belongsTo(LinkMan::class,'at_enterprise_info_id');
//     }
    
}
